package com.ruihu.admin.module.system.role.basic.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@Builder
public class RoleUserBatchDTO {

    @ApiModelProperty("角色id集合")
    @NotNull(message = "角色id不能为空")
    private List<Long> roleIds;

    /**
     * 员工id集合
     */
    @ApiModelProperty(value = "用户id")
    @NotEmpty(message = "用户id不能为空")
    private Long userId;
}
